//
//  RecommendCollectionViewCell.m
//  UGoods
//
//  Created by dllo on 16/1/16.
//  Copyright © 2016年 蓝鸥科技.李贺. All rights reserved.
//

#import "RecommendCollectionViewCell.h"

@implementation RecommendCollectionViewCell

- (void)dealloc
{
    [_thumbnailImageView release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.thumbnailImageView = [[UIImageView alloc] init];
        [self.contentView addSubview:_thumbnailImageView];
        [_thumbnailImageView release];
    }
    return self;
}

- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes {
    [super applyLayoutAttributes:layoutAttributes];
    _thumbnailImageView.frame = self.contentView.bounds;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
